function createXMLHttpRequest(){  
    
    if(window.XMLHttpRequest){  
        //Mozilla浏览器  
          
        XMLHttpReq=new XMLHttpRequest();  
    }else{  
          
        //IE浏览器  
        if(window.ActiveXObject){  
            try{  
                XMLHttpReq=new ActionXObject("Msxm12.XMLHTTP");  
            }catch(e){  
                try{  
                    XMLHttpReq=new ActiveXObject("Microsoft.XMLHTTP");  
                }catch(e){}  
            }  
        }  
    }  
} 

function sendRequest(url){
	   createXMLHttpRequest();  
	   XMLHttpReq.onreadystatechange=handleResponse; 
	  
	   XMLHttpReq.open("GET",url,true);  
	   XMLHttpReq.send(null);  
	} 